import { createRouter, createWebHistory } from "vue-router";
import HomeView from "../views/HomeView.vue";

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: "/",
      redirect: "/signal-selection",
    },
    {
      path: "/signal-selection",
      name: "signal-selection",
      component: () => import("@/views/admin/SignalSelection.vue"),
    },
    {
      path: "/icon-mode",
      name: "icon-mode",
      component: () => import("@/views/admin/IconMode.vue"),
    },
    {
      path: "/vip-manual-control",
      name: "vip-manual-control",
      component: () => import("@/views/admin/VipManualControl.vue"),
    },
    {
      path: "/map-mode",
      name: "map-mode",
      component: () => import("@/views/admin/MapMode.vue"),
    },
    {
      path: "/green-wave-settings",
      name: "green-wave-settings",
      component: () => import("@/views/admin/GreenWaveSettings.vue"),
    },
  ],
});

export default router;
